package team.seekers.hula.question.answerComment.entity.dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.common.entity.enums.StatusEnum;

/**
 * <p>
 * 回答的评论
 * </p>
 *
 * @author hbc
 * @since 2021-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AnswerComment对象", description="回答的评论")
@TableName(value = "answer_comment")
public class AnswerCommentDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String questionId;

    private String answerId;

    private String userId;

    @ApiModelProperty(value = "评论的内容")
    private String content;

    @ApiModelProperty(value = "作者对评论的回复")
    private String reply;

    @ApiModelProperty(value = "评论的点赞数")
    private Integer goodNumber;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "0为待审核，1为审核通过，2为审核不通过")
    @JsonValue
    private StatusEnum status;


}
